package com.telesound.dataimport;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;

import com.telesound.dataimport.util.DateUtil;

public class ImportLogger {
	public static void writeLog(String filePath,String uuid,String message){
		try {
			OutputStream os=new FileOutputStream(filePath,true);
			PrintWriter pw=new PrintWriter(os);
			if(message!=null){
				pw.println(DateUtil.getCurrentDateTime()+"  "+message);
			}
			pw.close();
			os.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
